import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import VueUeditorWrap from 'vue-ueditor-wrap';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/reset.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {permission} from "@/directive/promission";
import { createPinia } from 'pinia'
import * as echarts from 'echarts'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router)
.use(VueUeditorWrap)
.use(ElementPlus)
.use(createPinia())
.use(echarts)
.directive('permission', permission)
app.mount('#app')
